package com.xiaoshuidi.cloud.framework.yinlian.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;

@Data
@Validated
@ConfigurationProperties(prefix = "yinlian.ftp")
public class YinlianFtpProperties {
    @NotEmpty(message = "银联FTP服务地址不能为空")
    private String host;
    private int port = 21;
    @NotEmpty(message = "银联FTP账号不能为空")
    private String username;
    @NotEmpty(message = "银联FTP密码不能为空")
    private String password;
    @NotEmpty(message = "银联FTP目录不能为空")
    private String dir;
    @NotEmpty(message = "银联FTP文件正则表达试不能为空")
    private String filePattern;
}
